#include "Game.h"

void Game::Start()
{
	if (_gameState = Uninitialized)
	{
		return;
	}
	_mainWindow.create(sf::VideoMode(SCREEN_WIDTH, SCREEN_HEIGHT), "Asteroids!");

	_gameState = ShowingSplash;
	while (!IsExiting())
	{
		GameLoop();
	}
	_mainWindow.close();
}

bool Game::IsExiting()
{
	return _gameState == Exiting;
}

void Game::ShowSplashScreen()
{
	SplashScreen splashScreen;
	SplashScreen.show(_mainWindow);
	_gameState = Game::ShowingMainMenu;
}




